]> dgit.raspbian.org Git - gnome-shell.git/commit
switcherPopup: Fix scrollable check
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 29 Nov 2019 00:11:16 +0000 (01:11 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 29 Nov 2019 15:47:48 +0000 (16:47 +0100)
commit867cffaf2093dbf3cad178356ea4716f02334073
tree1b1d7cf82b10d76768c651ddee86d756c18e5314
parent5f9036e81572a043f7de513c176c45d8e9d90929
switcherPopup: Fix scrollable check

When commit c6cea277e replaced Shell.GenericContainer, the check
whether the required width exceeds the avilable width was changed
from using the minimum widths of items to the natural width of the
scroll view.

That doesn't work correctly, as the *natural* width may well exceed
the actually used width: SwitcherList bases its width request on
children's minimum sizes to force labels to ellipsize.

Fix this by using the minimum width of the scroll view's child instead.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/1834
js/ui/switcherPopup.js